Skip to content

Conversation

@imaheshno1
Copy link

This PR introduces several improvements to the JoinRoom component, focusing on error handling, performance optimization, and user experience.

Changes

  • Fixed Memory Leaks:
    • Added proper cleanup for socket event listeners
    • Implemented timeout cleanup using useRef
  • Improved Error Handling:
    • Added user authentication check before joining a room
    • Enhanced error messages and their display
    • Added loading states to prevent multiple submissions
  • Performance Optimizations:
    • Memoized callbacks with useCallback
    • Optimized re-renders
    • Reduced unnecessary state updates
  • UI/UX Improvements:
    • Disabled buttons during loading
    • Added visual feedback for loading state
    • Prevented navigation during loading
    • Improved error message display
  • Code Quality:
    • Better code organization and structure
    • Added proper TypeScript-like type safety with JSDoc comments
    • Improved code readability and maintainability

Testing

  • Tested joining a room with valid code
  • Verified error handling for invalid codes
  • Checked loading states and button disabling
  • Verified proper cleanup on unmount
  • Tested keyboard navigation

Yogesh Manivannan and others added 30 commits June 23, 2025 17:33
…dwrite

Re-add roomController.js with full DB read/write logic
…components

Added reusable frontend React components: Navbar, AvatarGrid etc
…pload

Added game rules file upload (.txt) Concept - File Upload Functionality
…assword

Added email/password based authentication using Firebase
…oogle

Added Google Authentication with Firebase (3rd party auth)
…-delete

Implemented update and delete functionality in CreateRoom
…ken-firebase

Using Firebase JWT tokens in application
Added 6 unit tests using Vitest & Testing Library
…file

Added Dockerfile to containerize app
Integrated LangChain.js for AI-powered hint generation
…t-gateway

Added payment Link for Payment Gateway integration in AboutDev page
Added cronjob to auto-delete expired rooms every 20 mins
Yogesh Manivannan and others added 27 commits June 30, 2025 22:41
Updated README to include Gemini API and deployment details.
@yep-yogesh
Copy link
Owner

Hey @imaheshno1 pls star the repo and ping again

@imaheshno1
Copy link
Author

imaheshno1 commented Oct 2, 2025 via email

@imaheshno1
Copy link
Author

Hey @imaheshno1 pls star the repo and ping again

@yep-yogesh bro check it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants